package javabase.desginpattern.structure.bridge;

/**
 * @author fance
 * @date 18-4-28 下午1:24
 */
public class Client {
    public static void main(String[] args) {
        AbstractRoad speedWay = new SpeedWay();
        speedWay.abstractCar = new Car();
        People man = new Man();
        man.abstractRoad = speedWay;
        man.run();
        AbstractRoad streetWay = new Street();
        streetWay.abstractCar = new Bus();
        People woman = new Woman();
        woman.abstractRoad = streetWay;
        woman.run();

    }
}
